import { rcaNumberFormat } from './common.js'
import { commonTableOption } from './common.js'
export const tableOption = {
  ...commonTableOption,
  column: [
    {
      type: 'input',
      label: '统计日期',
      prop: 'statisticsDate'
    }, {
      type: 'select',
      label: '线路',
      prop: 'lineCode',
      display: true,
      type: 'select',
      cascaderItem: ['stationCode'],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: '/support/swparamline/dictAll',
    }, {
      label: '车站',
      prop: 'stationCode',
      type: 'input'
    },/* {
      label: '车站',
      prop: 'stationCode',
      type: 'select',
      dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: `/support/swparamstation/dict/{{key}}`,
    },*/
    {
      type: "select",
      label: "应急纸票类型",
      prop: "reportType",
      searchLabelWidth: 100,
      dicUrl: "/admin/dict/type/ck_yjzp_report_type",
    },  {
      type: 'select',
      label: '分类',
      prop: 'projectItem',
    },{
      type: 'input',
      label: '票面金额',
      prop: 'itemUnit',
      showSummary: true,
      precision: 2,
      formatter: (row, value, label, column) => {
        return rcaNumberFormat(value, true)
      }
    },{
      type: 'input',
      label: '张数',
      prop: 'itemAmount'
      },{
      type: 'input',
      label: '合计金额',
      prop: 'itemMoney',
      showSummary: true,
      precision: 2,
      formatter: (row, value, label, column) => {
        return rcaNumberFormat(value, true)
      }
    }]
}
